namespace TestConsoleApplication
{
    using System;
    using System.Data.Entity;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Linq;

    public partial class Model1 : DbContext
    {
        public Model1()
            : base("name=Model1")
        {
        }

        public virtual DbSet<YWM_Member_UserInfo> YWM_Member_UserInfo { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<YWM_Member_UserInfo>()
                .Property(e => e.LoginAccount)
                .IsUnicode(false);

            modelBuilder.Entity<YWM_Member_UserInfo>()
                .Property(e => e.HeadImg)
                .IsUnicode(false);

            modelBuilder.Entity<YWM_Member_UserInfo>()
                .Property(e => e.LoginPassword)
                .IsUnicode(false);

            modelBuilder.Entity<YWM_Member_UserInfo>()
                .Property(e => e.PayPassword)
                .IsUnicode(false);

            modelBuilder.Entity<YWM_Member_UserInfo>()
                .Property(e => e.IdCard)
                .IsUnicode(false);

            modelBuilder.Entity<YWM_Member_UserInfo>()
                .Property(e => e.IdCardUrl)
                .IsUnicode(false);

            modelBuilder.Entity<YWM_Member_UserInfo>()
                .Property(e => e.Tel)
                .IsUnicode(false);

            modelBuilder.Entity<YWM_Member_UserInfo>()
                .Property(e => e.ThreadLoginToken)
                .IsUnicode(false);

            modelBuilder.Entity<YWM_Member_UserInfo>()
                .Property(e => e.DeviceToken)
                .IsUnicode(false);
        }
    }
}
